package com.tgy.MyFlowable.workflow.util;

import cn.hutool.core.date.DateUtil;

/**
 * 流程标题工具
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 9:09
 */
public class BpmTitleUtil {
    /**
     * 处理流程标题规则
     */
    public static String formatTitle(String titleReg, String processTitle, String userName) {
        return titleReg.replace("user", userName)
                .replace("time", DateUtil.now())
                .replace("title", processTitle);
    }

}
